package com.ruoyi.personnel.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 访客日志记录对象 access_logs
 * 
 * @author hyj
 * @date 2020-03-04
 */
public class AccessLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 访问目的 */
    @Excel(name = "访问目的")
    private String objective;

    /** 被访用户id */
    @Excel(name = "被访用户id")
    private Long accessUserId;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 修改人员编号 */
    @Excel(name = "修改人员编号")
    private Long modifier;

    /** 有效时间 */
    @Excel(name = "有效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setObjective(String objective) 
    {
        this.objective = objective;
    }

    public String getObjective() 
    {
        return objective;
    }
    public void setAccessUserId(Long accessUserId) 
    {
        this.accessUserId = accessUserId;
    }

    public Long getAccessUserId() 
    {
        return accessUserId;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setModifier(Long modifier) 
    {
        this.modifier = modifier;
    }

    public Long getModifier() 
    {
        return modifier;
    }
    public void setEffectiveTime(Date effectiveTime) 
    {
        this.effectiveTime = effectiveTime;
    }

    public Date getEffectiveTime() 
    {
        return effectiveTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("objective", getObjective())
            .append("accessUserId", getAccessUserId())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("modifier", getModifier())
            .append("effectiveTime", getEffectiveTime())
            .toString();
    }
}
